package com.rzcode.coinex.kernel.service.impl;

import com.rzcode.coinex.kernel.common.mybatis.query.LambdaQueryWrapperPlus;
import com.rzcode.coinex.kernel.dao.entity.Member;
import com.rzcode.coinex.kernel.dao.mapper.MemberMapper;
import com.rzcode.coinex.kernel.service.MemberService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class MemberServiceImpl implements MemberService {
    private final MemberMapper memberMapper;

    @Override
    public List<Member> listMembers() {
        LambdaQueryWrapperPlus<Member> wrapper = new LambdaQueryWrapperPlus<>();
        return null;
    }

    @Override
    public Member getOne(Long userId) {
        LambdaQueryWrapperPlus<Member> wrapper = new LambdaQueryWrapperPlus<>();
        wrapper.eq(Member::getId, userId);
        return memberMapper.selectOne(wrapper);
    }
}
